<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection -->
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head th:include="head.html::head">
  <link th:href="@{/local/css/login.css}" rel="stylesheet">
</head>
<body>
<div id="top" th:include="head.html::top"></div>
<div id="middle">
  <div id="left" th:include="left.html::left"></div>
  <div id="right">

    <form action="/admin/gotoAddOrders" method="get">
      <input type="submit" value="添加订单">
    </form>
    <table>
      <div th:text="${msg}"></div>
      <tr>
        <th>订单ID</th>
        <th>用户ID</th>
        <th>订单时间</th>
        <th>订单总数</th>

      </tr>
      <tr th:each="orders:${ordersList.list}">
        <td th:text="${orders.getOid()}"></td>
        <td th:text="${orders.getUsers().getUname()}"></td>
        <td th:text="${#calendars.format(orders.getOtime(),'yyyy-MM-dd')}"></td>
        <td th:text="${orders.getOtotal()}"></td>
        <td>
          <a th:href="@{/admin/selorderdetail/} + ${orders.getOid()}">订单详情</a>
          <a th:href="@{/admin/delOrders/} + ${orders.getOid()}">删除</a>
          <a th:href="@{/admin/orders/} + ${orders.getOid()}">编辑</a>
        </td>
      </tr>
    </table>
    <div th:include="page.html::mypage(orders,${ordersList})"></div>
  </div>
</div>
<div id="bottom" th:include="bottom.html::bottom"></div>

</body>
